import platform
from contextlib import contextmanager
from threading import Thread

from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium import webdriver
import time
from selenium.webdriver.common.by import By
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
import re

import  subprocess

a=""



def fuc(url):
    driver =webdriver.Remote(
        command_executor=url,
        desired_capabilities=DesiredCapabilities.CHROME,
        browser_profile=None
    )

    driver.get("http://47.52.168.156")
    print(driver.page_source)




# res=open("./5555").readlines()
# for i in res:
#     url='http://'+i.strip()+":4444/wd/hub/"
#     url='http://'+i.strip()+":4444/wd/hub/"
#     thr=Thread(target=fuc, args=[url])
#     thr.start()


thr=Thread(target=fuc, args=['http://138.201.50.148:4445/wd/hub'])


#
#
#
#
#



